package com.sk.cardeal.entity;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by sk on 2018/1/16.
 */

public class WorkPostion implements Parcelable {

    /**
     * id : 402880eb60da36420160da3732e80001
     * text : 四轮定位
     * state : 0
     * plate_in_use : null
     * customer_in_use : null
     * worker_in_use : null
     * org_top_id : 402880eb60d8b87a0160d8bb2c450001
     * isdel : 0
     * type : 12aca01e1c0146e8a8e4ef31fcd843de
     * createTime : 2018-01-09 17:18:25.0
     * waitCount : 1
     */

    private String id;
    private String text;
    private int state;
    private String plate_in_use;
    private String customer_in_use;
    private String worker_in_use;
    private String org_top_id;
    private int isdel;
    private String type;
    private String createTime;
    private String waitCount;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getText() {
        return text;
    }

    public void setText(String text) {
        this.text = text;
    }

    public int getState() {
        return state;
    }

    public void setState(int state) {
        this.state = state;
    }

    public String getPlate_in_use() {
        return plate_in_use;
    }

    public void setPlate_in_use(String plate_in_use) {
        this.plate_in_use = plate_in_use;
    }

    public String getCustomer_in_use() {
        return customer_in_use;
    }

    public void setCustomer_in_use(String customer_in_use) {
        this.customer_in_use = customer_in_use;
    }

    public String getWorker_in_use() {
        return worker_in_use;
    }

    public void setWorker_in_use(String worker_in_use) {
        this.worker_in_use = worker_in_use;
    }

    public String getOrg_top_id() {
        return org_top_id;
    }

    public void setOrg_top_id(String org_top_id) {
        this.org_top_id = org_top_id;
    }

    public int getIsdel() {
        return isdel;
    }

    public void setIsdel(int isdel) {
        this.isdel = isdel;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getWaitCount() {
        return waitCount;
    }

    public void setWaitCount(String waitCount) {
        this.waitCount = waitCount;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.id);
        dest.writeString(this.text);
        dest.writeInt(this.state);
        dest.writeString(this.plate_in_use);
        dest.writeString(this.customer_in_use);
        dest.writeString(this.worker_in_use);
        dest.writeString(this.org_top_id);
        dest.writeInt(this.isdel);
        dest.writeString(this.type);
        dest.writeString(this.createTime);
        dest.writeString(this.waitCount);
    }

    public WorkPostion() {
    }

    protected WorkPostion(Parcel in) {
        this.id = in.readString();
        this.text = in.readString();
        this.state = in.readInt();
        this.plate_in_use = in.readString();
        this.customer_in_use = in.readString();
        this.worker_in_use = in.readString();
        this.org_top_id = in.readString();
        this.isdel = in.readInt();
        this.type = in.readString();
        this.createTime = in.readString();
        this.waitCount = in.readString();
    }

    public static final Parcelable.Creator<WorkPostion> CREATOR = new Parcelable.Creator<WorkPostion>() {
        @Override
        public WorkPostion createFromParcel(Parcel source) {
            return new WorkPostion(source);
        }

        @Override
        public WorkPostion[] newArray(int size) {
            return new WorkPostion[size];
        }
    };
}
